﻿Imports System.Text

''' <summary>
''' 定义操作转换文档的基本方法
''' </summary>
''' <remarks></remarks>
Public Interface IConvertDocument

    ''' <summary>
    ''' 获取文件名
    ''' </summary>
    ''' <value>包含文件名的完整字符串</value>
    ''' <returns>返回包含完整路径的文件名。如果文档内容不是来至文件，则返回空串“”。</returns>
    ''' <remarks></remarks>
    ReadOnly Property FileName As String

    ''' <summary>
    ''' 获取文档从上次保存文档后是否修改过
    ''' </summary>
    ''' <value></value>
    ''' <returns>如果修改过着返回True，否则返回False</returns>
    ''' <remarks></remarks>
    ReadOnly Property IsChanged As Boolean

    ''' <summary>
    ''' 获取或设置文档内容
    ''' </summary>
    ''' <value></value>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Property Content() As String


    ''' <summary>
    ''' 获取源字符编码
    ''' </summary>
    Function GetSourceEncoding() As Encoding

    ''' <summary>
    ''' 获取目标字符编码
    ''' </summary>
    Function GetDestinationEncoding() As Encoding


End Interface
